

package cn.shengchao.examstar.distribute.infrastrure.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;
import top.continew.starter.extension.crud.model.entity.BaseDO;

@Data
@NoArgsConstructor
@TableName(value = "distribute_dept_user_role_bind")
public class DistributeDeptUserRoleBind extends BaseDO {
    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 数据状态 0草稿 1现行 2历史
     */
    @TableField(value = "data_status")
    private Integer dataStatus;

    /**
     * 分销角色 0平台 1内容 2销售
     */
    @TableField(value = "distribute_type")
    private Integer distributeType;

    /**
     * 部门_id
     */
    @TableField(value = "dept_id")
    private Long deptId;

    /**
     * 分销角色名YSXG,MKMG,DSPD,DSPD_EMP,SLMB，CTPD，CTPD_EMP
     */
    @TableField(value = "distribute_role_code")
    private String distributeRoleCode;

    /**
     * 生效开始时间
     */
    @TableField(value = "valid_start_time")
    private Date validStartTime;

    /**
     * 生效结束时间
     */
    @TableField(value = "valid_end_time")
    private Date validEndTime;

    /**
     * 系统内置角色名sr_scfx_scjl，sr_scfx_jms，sr_scfx_jms_yg，sr_scfx_slmb，sr_nrfx_jms，sr_nrfx_jms_yg,sr_nrfx_teacher
     */
    @TableField(value = "sys_role_code")
    private String sysRoleCode;

}